using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;
using MinimalistFoodStreet.BackEnd.Server.IServer.Tables;

namespace MinimalistFoodStreet.BackEnd.Api.Api.Controllers.Tables
{
	public class VarifysController : BaseController 
	{
		private readonly IVarifysServer _iVarifysServer;

		public VarifysController (IVarifysServer iVarifysServer)
		{
			_iVarifysServer = iVarifysServer;
		}
		
		/// <summary>
		/// 添加
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		[HttpPost]
		public async Task<IActionResult> Add(RequestCreateVarifysDto dto)
		{
			return Send(await _iVarifysServer.AddAsync(dto));
		}
	}
}
	